package com.bestdreamer.news;

import java.util.Observable;

public class BlogUser extends Observable {

    public void publishBlog(String articleTitle,String articleContent){

        Article article = new Article();
        article.setArticleTitle(articleTitle);
        article.setArticleContent(articleContent);

        System.out.println("博主：发表新闻章，文章标题："+ articleTitle+",文章内容 "+articleContent);
        this.setChanged();
        this.notifyObservers(article);
    }

}
